package com.per.mybootall.pojo;

import org.springframework.stereotype.Component;

import java.util.Date;
@Component
public class User {
    private Long id;

    private String username;

    private String password;

    private Date creattime;

    private Date updatetime;

    public User(Long id, String username, String password, Date creattime, Date updatetime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.creattime = creattime;
        this.updatetime = updatetime;
    }

    public User() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }
}